#include<iostream>
#include<algorithm>
#include<functional>
#include<iterator>
using namespace std;

int main(){

    double a[]={1.1,4.4,3.3,2.2,},b[4];
    copy(a,a+4,ostream_iterator<double>(cout," "));
    cout<<"\r\n"<<endl;
    reverse_copy(a,a+4,ostream_iterator<double>(cout," "));
    cout<<"\r\n"<<endl;
    sort(a,a+4);
    copy(a,a+4,ostream_iterator<double>(cout," "));
    cout<<"\r\n"<<endl;
    double *x = find(a,a+4,2.2);
    cout<<"-"<<(x==a+4)<<"-"<<"-"<<a<<"-"<<a+4<<endl;
    if(x==a+4)
        cout<<"No"<<endl;
    else
        cout<<*x<<endl;

    cout<<endl;

    return 0;
}

